<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>
window.onload =function(){
  function getRem (){
  let clientWidth = window.innerWidth;
  let rem = parseInt(clientWidth/375 * 10);
  console.log(rem)
  document.getElementsByTagName('html')[0].style.fontSize = rem + 'px'
}
getRem()
let timer;
window.onresize = ()=> {
  clearTimeout(timer)
  timer = setTimeout(() => {
    getRem()
  }, 100);
}
}
export default {
  
}
</script>


